home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
math
/
nrpas13
/
bessi1.dem
< prev
next >
Wrap
Text File
|
1991-04-29
|
552b
|
25 lines
PROGRAM d6r23(input,output,dfile);
(* driver for routine BESSI1 *)
VAR
i,nval : integer;
val,x : real;
txt : string[27];
dfile : text;
(*$I MODFILE.PAS *)
(*$I BESSI1.PAS *)
BEGIN
glopen(dfile,'fncval.dat');
REPEAT readln(dfile,txt) UNTIL (txt = 'Modified Bessel Function I1');
readln(dfile,nval);
writeln(txt);
writeln;
writeln('x':5,'actual':16,'bessi1(x)':17);
FOR i := 1 to nval DO BEGIN
readln(dfile,x,val);
writeln(x:6:2,val:16:7,bessi1(x):16:7)
END;
close(dfile)
END.